import request from '@/utils/request'
const path = "/api/interface"

/* 获取所有路由列表接口
params { 
}
*/
export function getFieldByForm(data) {
  return request({
    url: path + '/field/getFieldByForm/',
    method: 'post',
    data
  })
}

export function updateField(data) {
  return request({
    url: path + '/field/updateField/',
    method: 'post',
    data
  })
}
// 同步字段
export function createFieldByTable(data) {
  return request({
    url: path + '/fieldList/createFieldByTable/',
    method: 'post',
    data
  })
}

// FieldForm
export function getFieldForm(params) {
  return request({
    url: path + '/fieldForm/',
    method: 'get',
    params
  })
}
export function updateFieldForm(data) {
  return request({
    url: path + '/fieldForm/updateAction/',
    method: 'post',
    data
  })
}

// FieldList
export function getFieldList(params) {
  return request({
    url: path + '/fieldList/',
    method: 'get',
    params
  })
}
export function updateFieldList(data) {
  return request({
    url: path + '/fieldList/updateAction/',
    method: 'post',
    data
  })
}
// FieldExport
export function getFieldExport(params) {
  return request({
    url: path + '/fieldExport/',
    method: 'get',
    params
  })
}
export function updateFieldExport(data) {
  return request({
    url: path + '/fieldExport/updateAction/',
    method: 'post',
    data
  })
}

// FieldImport
export function getFieldImport(params) {
  return request({
    url: path + '/fieldImport/',
    method: 'get',
    params
  })
}
export function updateFieldImport(data) {
  return request({
    url: path + '/fieldImport/updateAction/',
    method: 'post',
    data
  })
}